import axios from '@/api/index'

// 发表意见
export const sendSuggestion = (param) => {
  return axios.httpRequest({
    url: 'suggest/addOpinion.do',
    method: 'post',
    data: param
  })
}
// 获取建议
export const getSuggestions = (param) => {
  return axios.getRequest({
    url: 'suggest/getAllOpinions.do',
    method: 'get',
    params: param
  })
}
